package com.smartfast4j.manager.modules.version.service;

import com.smartfast4j.pojo.version.VersionManager;
import com.smartfast4j.pojo.version.VersionManagerExample;
import java.util.List;

public interface VersionManagerService {
    int countByExample(VersionManagerExample example);

    VersionManager selectByPrimaryKey(String id);

    List<VersionManager> selectByExample(VersionManagerExample example);

    int deleteByPrimaryKey(String id);

    int updateByPrimaryKeySelective(VersionManager record);

    int updateByPrimaryKey(VersionManager record);

    int deleteByExample(VersionManagerExample example);

    int updateByExampleSelective(VersionManager record, VersionManagerExample example);

    int updateByExample(VersionManager record, VersionManagerExample example);

    int insert(VersionManager record);

    int insertSelective(VersionManager record);

    int insertBatchSelective(List<VersionManager> records);

    int updateBatchByPrimaryKeySelective(List<VersionManager> records);

    /**
     * 校验版本号
     * @param versionManager
     * @return
     */
    VersionManager checkVersionCode(VersionManager versionManager);

    /**
     * 删除
     * @param loginUserId
     * @param idList
     */
    void delete(Long loginUserId, List<String> idList);
}